<include file="Public:header"/>
<div class="form_data">
	<form action="{:URL('index')}" method="get" filterValid="true" class="search_form">
	<div class="mod_name" style="padding-bottom:0px;margin-bottom:0px;">
		<span class="name">搜索条件</span>
	</div>
	<div class="mod_data" style="margin-bottom:10px;">
		<div class="input_data">
			<eq name="_city_id" value="">
				{:W('Plugin/area_select', array('城市', 0, 0))}
			</eq>
			姓名
			<input type="text" name="realname" id="w100" value="{$realname}">
			手机号
			<input type="text" name="mobile" id="w100" value="{$mobile}">
			<button type="submit" class="btn btn-search">查询</button>
		</div>
	</div>
	</form>
</div>
<div class="data_list">
	<table>
		<tr>
			<th>ID</th>
			<th>用户名</th>
			<th>姓名</th>
			<th>手机号</th>
			<th>城市</th>
			<th>角色</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
		<volist name="list" id="rs">
		<tr class="data-{$rs['id']}">
			<td><input type="hidden" name="id[{$rs['id']}]" value="{$rs['id']}">{$rs['id']}</td>
			<td>{$rs['username']}</td>
			<td>{$rs['realname']}</td>
			<td>{$rs['mobile']}</td>
			<td>{$rs['city_name']}</td>
			<td>
				<eq name="rs.status" value="99">
				超级管理员
				<else/>
				{$rs['role_name']}
				</eq>
			</td>
			<td>
				<eq name="rs.status" value="99">
					启用
				</eq>
				<eq name="rs.status" value="1">
					启用
				</eq>
				<eq name="rs.status" value="0">
					禁用
				</eq>
			</td>
			<td>
				<eq name="rs.status" value="99">
				<else/>
				<a href="{:URL('edit', array('id'=>$rs['id']))}" title="修改">
					<i class="if if-edit"></i>
				</a>
				</eq>
			</td>
		</tr>
		</volist>
	</table>
</div>

<notempty name="page"><div class="page">{$page}</div></notempty>

<div class="batch_opt">
	<span class="btn btn-add" url="{:URL('add', array('type' => $type))}">添加账号</span>
</div>

<include file="Public:footer"/>